fix: upgrade pip before installing uv in alpine build#735
Merged
Conversation
Alpine 3.14's system pip (20.3.4) predates musllinux wheel-tag support (PEP 656, pip 21.3), so `pip install uv --only-binary uv` finds no compatible wheel and fails with "No matching distribution found for uv". Install uv via its official musl-native standalone installer instead, placing the binary on PATH via UV_INSTALL_DIR. Co-authored-by: Cursor <cursoragent@cursor.com>
❌ 1 Tests Failed:
View the full list of 1 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
Alpine 3.14's system pip (20.3.4) predates musllinux wheel-tag support (PEP 656, pip 21.3), so `pip install uv --only-binary uv` finds no compatible wheel and fails with "No matching distribution found for uv". Upgrade pip first so it recognizes musllinux tags and can install the uv wheel. Alpine 3.14 has no PEP 668 EXTERNALLY-MANAGED marker, so no --break-system-packages is needed. Co-authored-by: Cursor <cursoragent@cursor.com>
calvin-codecov
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Build and Publish CLI ReleaseAlpine matrix legs failed atRun in Docker(e.g. run 28973879139) withERROR: No matching distribution found for uv.alpine:3.14ships system pip20.3.4, which predatesmusllinuxwheel-tag support (PEP 656, added in pip 21.3). Sinceuvonly ships musl builds asmusllinuxwheels,pip install uv --only-binary uvfinds no compatible candidate and fails.musllinuxtags and can install theuvwheel. Alpine 3.14 has no PEP 668EXTERNALLY-MANAGEDmarker (that arrived in Alpine 3.19 / Python 3.11), so no--break-system-packagesis required.--only-binary uvis kept so pip never falls back to a source build.Test plan
build_assetsworkflow withrelease: true) and confirm the Alpine x86_64 and arm64 legs build and upload assets successfully.